home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_11
/
9n11116a
< prev
next >
Wrap
Text File
|
1991-10-07
|
728b
|
32 lines
Listing 2
void find_min_max(one, two, three, minimum, maximum)
int one, two, three; /* Input values to compare */
int *minimum;
int *maximum;
{
if (one > two)
{
if (one > three)
*maximum = one;
else
*maximum = three;
if (two > three)
*minimum = three;
else
*minimum = two;
else
{
if (two > three)
*maximum = two;
else
*maximum = three;
if (one > three)
*minimum = three;
else
*minimum = one;
}
return ;
}